package com.gyh.stlserver.service.impl;

import com.gyh.stlserver.entity.Room;
import com.gyh.stlserver.mapper.RoomMapper;
import com.gyh.stlserver.service.RoomService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RoomServiceImpl implements RoomService {

    @Resource
    private RoomMapper roomMapper;
    @Override
    public List<Room> getAllRoom() {
        return roomMapper.select();
    }
}
